import { defineStore } from 'pinia';

export const useFavoritesStore = defineStore('favorites', {
    state: () => ({
        items: []
    }),
    actions: {
        addItem(item) {
            this.items.push(item);
        },
        removeItem(itemId) {
            this.items = this.items.filter(item => item.id !== itemId);
        }
    }
});